package com.bank.domain;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

@Entity
@Table(name = "customer_codes")
public class CustomerCode implements Serializable {

	private static final long serialVersionUID = 5924361831551833717L;
	
	@Id
	@Column(name = "CUSTOMER_CODE_ID")
	@GeneratedValue
	private Integer customerCodeId;
	
	@Column(name = "CUSTOMER_ID")
	private Integer customerId;

	@Column(name = "CUSTOMER_CODE_NUMBER")
	private Integer customerCodeNumber;
	@NotNull
	@Length(min=6, max=6)
	@Column(name = "CUSTOMER_CODE_VALUE")
	private String customerCodeValue;

	/**
	 * @return the customerCodeId
	 */
	public Integer getCustomerCodeId() {
		return customerCodeId;
	}

	/**
	 * @param customerCodeId the customerCodeId to set
	 */
	public void setCustomerCodeId(Integer customerCodeId) {
		this.customerCodeId = customerCodeId;
	}

	/**
	 * @return the customerId
	 */
	public Integer getCustomerId() {
		return customerId;
	}

	/**
	 * @param customerId the customerId to set
	 */
	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	/**
	 * @return the customerCodeNumber
	 */
	public Integer getCustomerCodeNumber() {
		return customerCodeNumber;
	}

	/**
	 * @param customerCodeNumber the customerCodeNumber to set
	 */
	public void setCustomerCodeNumber(Integer customerCodeNumber) {
		this.customerCodeNumber = customerCodeNumber;
	}

	/**
	 * @return the customerCodeValue
	 */
	public String getCustomerCodeValue() {
		return customerCodeValue;
	}

	/**
	 * @param customerCodeValue the customerCodeValue to set
	 */
	public void setCustomerCodeValue(String customerCodeValue) {
		this.customerCodeValue = customerCodeValue;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	
	
}
